package com.neusoft.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description="authority")
@TableName(value = "authority")
public class Authority {
    /**
     * (id)
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="(id)")
    private Integer id;

    /**
     * 权限
     */
    @TableField(value = "authority")
    @ApiModelProperty(value="权限")
    private String authority;

    /**
     * 获取(id)
     *
     * @return id - (id)
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置(id)
     *
     * @param id (id)
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取权限
     *
     * @return authority - 权限
     */
    public String getAuthority() {
        return authority;
    }

    /**
     * 设置权限
     *
     * @param authority 权限
     */
    public void setAuthority(String authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", authority=").append(authority);
        sb.append("]");
        return sb.toString();
    }
}
